package com.corpgovernment.travelstandard.entity.db;

import com.corpgovernment.common.annotation.OperateLogFieldDesc;
import com.corpgovernment.common.entity.db.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Table;

@Alias("mbTravelStandCarAddress")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "mb_travelstand_car_address")
public class MbTravelStandCarAddress extends BaseEntity {

    /**
     * 城市名称
     */
    @OperateLogFieldDesc(value = "差标id")
    @Column(name = "ts_id")
    private Long tsid;

    @OperateLogFieldDesc(value = "城市名")
    @Column(name = "city_name")
    private String cityName;
    /**
     * 城市id
     */
    @OperateLogFieldDesc(value = "城市编码")
    @Column(name = "city_code")
    private String cityCode;

    /**
     * 地点管控类型 0：不限制   1：固定起点   2：固定终点  3：起点/终点任一
     */
    @OperateLogFieldDesc(value = "管控类型")
    @Column(name = "address_control_type")
    private Byte addressControlType;
    /**
     * 地点
     */
    @OperateLogFieldDesc(value = "地点")
    @Column(name = "address")
    private String address;
    /**
     * 详细地点
     */
    @OperateLogFieldDesc(value = "详细地点")
    @Column(name = "address_detail")
    private String addressDetail;
    /**
     * 经度
     */
    @OperateLogFieldDesc(value = "经度")
    @Column(name = "latitude")
    private String latitude;
    /**
     * 纬度
     */
    @OperateLogFieldDesc(value = "纬度")
    @Column(name = "longitude")
    private String longitude;
    /**
     * 打车范围
     */
    @OperateLogFieldDesc(value = "打车范围")
    @Column(name = "car_range")
    private Integer carRange;
}
